package com.tedu.DI;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Students {
    String name = "joy";
    @Autowired
   private  Teachers t1;

    @Override
    public String toString() {
        return "Students{" +
                "name='" + name + '\'' +
                ", t1=" + t1 +
                '}';
    }

    public Teachers getT1() {
        return t1;
    }

    public void setT1(Teachers t1) {
        this.t1 = t1;
    }

}
